#ifndef AX_SELECT_H
#define AX_SELECT_H

#include "ax_fd.h"
#include "com.h"
#include <stdbool.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif

int  ax_select_register(ax_fd* fd);
void ax_select_unregister(ax_fd* fd);
bool ax_select_is_registered(ax_fd* fd);
int  ax_select_main(int timout_ms);

#ifdef __cplusplus
}
#endif

#endif  // AX_SELECT_H
